//
//  User.m
//  CommunityApp
//
//  Created by 秦乾龙 on 16/12/24.
//  Copyright © 2016年 秦乾龙. All rights reserved.
//

#import "User.h"

@implementation User
- (instancetype)initWithDic:(NSDictionary*)dic
{
    if ([dic isKindOfClass:[NSDictionary class]]) {
    self.name = dic[@"nick_name"];
    self.sex = dic[@"user_gender"];
    self.headerImageUrl = dic[@"head_url"];
    self.personSign = dic[@"user_signature"];
    self.loveSignArr = dic[@"userTagList"];
//    self.fansCount = dic[@"fans"];
    self.careCount = dic[@"follow"];
    self.active = dic[@"actionper"];
    self.collectionCount = dic[@"collection"];
    self.personcount = dic[@"personcount"];
    self.userId = dic[@"user_id"];
    self.msg_content = dic[@"msg_content"];
    self.msg_send_tm = dic[@"msg_send_tm"];
    self.follow_tm = dic[@"follow_tm"];
    self.isgz = [NSString stringWithFormat:@"%@",dic[@"isgz"] ];
        self.home_page_view_count = [NSString stringWithFormat:@"%@",dic[@"home_page_view_count"]];
    }
    self.follow = [NSString stringWithFormat:@"%@",dic[@"follow"]];
    return self;
}
@end
